﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QlrrPrintService.Common.Command
{
    /// <summary>
    /// 清除 Image Buffer 
    /// </summary>
    public class Cls:IToTSPLCommand
    {
        #region IToTSPLCommand 成员

        public byte[] ToTSPLCommandByte(int m_to_dot)
        {
            return Util.GetEncodingBytes(ToTSPLCommandAscii(m_to_dot));
        }

        public string ToTSPLCommandAscii(int m_to_dot)
        {
            return string.Format("CLS{0}", Common.TSPL_END);
        }

        #endregion
    }
}
